﻿using AutoMapper;
using Step4.Unit7.Model.Entities;
using Step4.Unit7.Service.Dto;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Step4.Unit7.Service.Profiles
{
    public class AccountProfile:Profile  // 继承AutoMapper的"Profile"类，就会被识别为"映射文档"
    {
        public AccountProfile()
        {
            CreateMap<AccountBo, Account>();
            CreateMap<Account, AccountViewModel>();
            CreateMap<Debtor, DebtorViewModel>();
            CreateMap<AccountUpdateBo, Account>();
            CreateMap<Account, AccountUpdateBo>();
        }
    }
}
